﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Autofac;
using AutoMapper;
using ggHD.Domain.BizObj;
using LinqToDB;
using LinqToDB.Data;
using LinqToDB.Reflection;

using OpenPop.Mime;
using OpenPop.Mime.Traverse;
using OpenPop.Pop3;


using Message = OpenPop.Mime.Message;

namespace Test
{
    public class ext
    {

    }

    public static class Program
    {
        



        private static void Main(string[] args)
        {
            using (var db = new DataConnection())
            {
                var rm = db.GetTable<TicketHeader>().Single(m => m.Id == 6);
                var ir = rm.Initiator;

                Console.WriteLine(ir.FromAddress);
            }
            Console.ReadKey();
        }


    }
}
